Adding a new flag to the deploy command and the related new functionality in order to support the collecting of secrets and sending them to the backend#252
Open
karrgov wants to merge 4 commits intocloudfoundry:masterfrom
Conversation
|
|
||
| var jsonObject map[string]interface{} | ||
|
|
||
| err2 := json.Unmarshal([]byte(envValue), &jsonObject) |
Contributor
There was a problem hiding this comment.
can you reuse err?
Contributor
Author
There was a problem hiding this comment.
I know that reusing the same err is not recommended- I will just change the names and make them more descriptive instead of a plain err2 :)
vkalapov
requested changes
Jan 27, 2026
| Type typeOfValue | ||
| StringContent string | ||
| JSONContent interface{} | ||
| //ObjectContent map[string]interface{} |
Contributor
There was a problem hiding this comment.
Remove this comment if not needed.
| } | ||
| } | ||
|
|
||
| func TestCollectFromEnvWhenDuplciateNames(t *testing.T) { |
| "encryptionKey": encryptionKey, | ||
| "keyId": keyID, | ||
| } | ||
| jsonBody, _ := json.Marshal(upsCredentials) |
Contributor
There was a problem hiding this comment.
Why is the error from json.Marshal ignored here?
Contributor
Author
There was a problem hiding this comment.
Thanks for the suggestion :)
…lity in order to support the collecting of secrets and sending them to the backend LMCROSSITXSADEPLOY-2301
LMCROSSITXSADEPLOY-2301
LMCROSSITXSADEPLOY-2301
LMCROSSITXSADEPLOY-2301
77d8ac3 to
8922dd2
Compare
| upsCredentials := map[string]string{ | ||
| "encryptionKey": encryptionKey, | ||
| } | ||
| jsonBody, _ := json.Marshal(upsCredentials) |
Contributor
There was a problem hiding this comment.
handle exception here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LMCROSSITXSADEPLOY-2301